<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<c:if test="${requestScope.tradeAddrList.size()==0}">
	<div id="order">
		<div class="order_no_order">
			<img src='../../images/order/no_order_03.png'>
		</div>
		<div>
			<font color="#323232">您还没有相关地址！</font>
		</div>
		<div class="order_to_order">
			<a href="newaddr.jsp">
				<img src='../../images/person/add_addr.png'>
			</a>
		</div>
	</div>
</c:if>
<c:if test="${requestScope.tradeAddrList.size()>0}">
<p class="addr_title">默认地址</p>
<c:forEach var="tradeAddr" items="${requestScope.tradeAddrList}" varStatus="status">
	<c:if test="${tradeAddr.status=='2'}">
		<div class="addrbox addrboxCheck" style="background-color: #7ecef4" onclick="choiceaddr(this)">
			<div class="btn_choice">
				<img  class="choiceimg" src="../../images/person/choice.png">
			</div>
			<div class="address">
				<div class="addressconent">
					<p class="home_name">${tradeAddr.name}</p>
					<p class="tel">${tradeAddr.mobileNum}</p>
					<p class="address">${tradeAddr.province}${tradeAddr.city}${tradeAddr.area}${tradeAddr.street}${tradeAddr.addr}</p>
				</div>
				<div class="btns">
					<div class="btn_update" addrID="${tradeAddr.id}">
						<a href="javascript:void(0)">
						<img src="../../images/person/modify.png">
						</a>
					</div>
					<div class="btn_del" addrID="${tradeAddr.id}">
						<a href="javascript:void(0)">
						<img src="../../images/person/delete.png">
						</a>
					</div>
				</div>
			</div>
		</div>
	</c:if>
</c:forEach>
<div class="line"><img src="<%=path%>/images/home/line_03.png"></div>
<div style="clear:both"></div>	
<c:forEach var="tradeAddr" items="${requestScope.tradeAddrList}" varStatus="status">
	<c:if test="${tradeAddr.status=='0'}">
		<div class="addrbox" onclick="choiceaddr(this)">
			<div class="btn_choice">
				<img class="choiceimg" src="../../images/person/no_choice.png">
			</div>
			<div class="address">
				<div class="addressconent">
					<p class="home_name">${tradeAddr.name}</p>
					<p class="tel">${tradeAddr.mobileNum}</p>
					<p class="address">${tradeAddr.province}${tradeAddr.city}${tradeAddr.area}${tradeAddr.street}${tradeAddr.addr}</p>
				</div>
				<div class="btns">
					<div class="btn_update" addrID="${tradeAddr.id}">
						<a href="javascript:void(0)">
							<img src="../../images/person/modify.png">
						</a>
					</div>
					<div class="btn_del" addrID="${tradeAddr.id}">
						<a href="javascript:void(0)">
							<img src="../../images/person/delete.png">
						</a>
					</div>
				</div>
			</div>
		</div>
	</c:if>
</c:forEach>
<div class="btn_do">
	<div class="btn_newadded">
		<a href="newaddr.jsp">
		<img src="../../images/person/newadded.png">
		</a>
	</div>
	<div class="btn_complete">
		<a href="javascript:void(0)">
		<img src="../../images/person/complete.png">
		</a>
	</div>
</div>
</c:if>